//
//  NRWCarDetailLiveCarCell.m
//  NRWMall
//
//  Created by 张记 on 2018/5/22.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWCarDetailLiveCarCell.h"

@interface NRWCarDetailLiveCarCell ()
@property (weak, nonatomic) IBOutlet UIImageView *carImage;
@property (weak, nonatomic) IBOutlet UILabel *carTitle;
@property (weak, nonatomic) IBOutlet UILabel *carPrice;

@end

@implementation NRWCarDetailLiveCarCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setCarListModel:(Result *)carListModel{
    _carListModel = carListModel;
    [self.carImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",imageApi(),carListModel.carImageUrl]] placeholderImage:[UIImage imageNamed:@"List_defualt"]];
    self.carTitle.text = carListModel.carTitle;
    if ([carListModel.priceStr isEqualToString:@"价格面议"]) {
        self.carPrice.text = carListModel.priceStr;
    }else{
        self.carPrice.attributedText = [carListModel.priceStr getCarPriceString];
    }}
@end
